// 普通用户登录页面样式
.user-login-page {
    min-height: 100vh;
    background: url('/src/assets/pic/admin_login_bg.png') center center / cover no-repeat !important;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    // 背景遮罩层，增加层次感
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.2) 100%);
        pointer-events: none;
        z-index: 1;
    }
    // 背景装饰效果
    &::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
        background-size: 50px 50px;
        animation: float 20s ease-in-out infinite;
        pointer-events: none;
        z-index: 2;
    }
}

.user-login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: 84px; // 为固定导航栏留出空间 (64px + 20px)
    width: 100%;
    position: relative;
    z-index: 3;
}

.user-login-card {
    background: rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 40px;
    width: 100%;
    max-width: 480px;
    position: relative;
    overflow: hidden;
    margin: 0 auto; // 确保水平居中
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    }
}

.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.login-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.sample-data-notice {
    margin-bottom: 20px;
    width: 100%;
    
    .el-alert {
        border-radius: 12px;
        border: 1px solid rgba(102, 126, 234, 0.2);
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
        backdrop-filter: blur(10px);
        
        .el-alert__title {
            color: #667eea;
            font-weight: 600;
        }
        
        .el-alert__description {
            color: rgba(44, 62, 80, 0.8);
            font-size: 13px;
        }
        
        .el-alert__icon {
            color: #667eea;
        }
    }
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 24px;
    width: 100%;
    position: relative;
    
    .el-input {
        .el-input__wrapper {
            border-radius: 16px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            height: 56px;
            
            &:hover {
                border-color: rgba(102, 126, 234, 0.6);
                background: rgba(255, 255, 255, 0.2);
                transform: translateY(-1px);
                box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
            }
            
            &.is-focus {
                border-color: #667eea;
                background: rgba(255, 255, 255, 0.25);
                box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 8px 25px rgba(102, 126, 234, 0.2);
                transform: translateY(-2px);
            }
            
            .el-input__inner {
                color: #2c3e50;
                font-size: 16px;
                font-weight: 500;
                padding: 0 20px;
                
                &::placeholder {
                    color: rgba(44, 62, 80, 0.6);
                    font-weight: 400;
                }
            }
            
            .el-input__prefix {
                color: #667eea;
                font-size: 18px;
                margin-left: 16px;
            }
        }
    }
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    width: 100%;
    
    .el-checkbox {
        .el-checkbox__input {
            .el-checkbox__inner {
                border-radius: 6px;
                border: 2px solid rgba(102, 126, 234, 0.3);
                background: rgba(255, 255, 255, 0.2);
                transition: all 0.3s ease;
                
                &:hover {
                    border-color: #667eea;
                    background: rgba(255, 255, 255, 0.3);
                }
                
                &.is-checked {
                    background: #667eea;
                    border-color: #667eea;
                }
            }
        }
        
        .el-checkbox__label {
            color: #2c3e50;
            font-weight: 500;
            font-size: 14px;
        }
    }
    
    .forgot-password {
        color: #667eea;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
        padding: 4px 8px;
        border-radius: 8px;
        
        &:hover {
            color: #764ba2;
            background: rgba(102, 126, 234, 0.1);
            transform: translateY(-1px);
        }
    }
}

.login-btn {
    width: 100%;
    height: 56px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s ease;
    }
    
    &:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
        
        &::before {
            left: 100%;
        }
    }
    
    &:active {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    
    &:disabled {
        opacity: 0.7;
        transform: none;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    }
}

.social-login {
    margin-top: 20px;
    width: 100%;
    .divider {
        text-align: center;
        margin-bottom: 40px;
        position: relative;
        &::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
        }
        span {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            padding: 8px 20px;
            color: #667eea;
            font-size: 13px;
            font-weight: 500;
            border-radius: 20px;
            border: 1px solid rgba(102, 126, 234, 0.2);
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
            letter-spacing: 0.5px;
        }
    }
    .social-buttons {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    .social-btn {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        &::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: left 0.6s ease;
        }
        &:hover::before {
            left: 100%;
        }
        img {
            width: 26px;
            height: 26px;
            transition: all 0.3s ease;
            filter: brightness(0.8);
        }
        &:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.5);
            border-color: rgba(255, 255, 255, 0.6);
            img {
                filter: brightness(1);
                transform: scale(1.1);
            }
        }
        &:active {
            transform: translateY(-1px) scale(1.02);
        }
        &.qq {
            &:hover {
                background: linear-gradient(135deg, #12b7f5, #0ea5e9);
                border-color: #12b7f5;
                box-shadow: 0 8px 25px rgba(18, 183, 245, 0.3), 0 0 0 1px rgba(18, 183, 245, 0.3);
            }
        }
        &.wechat {
            &:hover {
                background: linear-gradient(135deg, #07c160, #059669);
                border-color: #07c160;
                box-shadow: 0 8px 25px rgba(7, 193, 96, 0.3), 0 0 0 1px rgba(7, 193, 96, 0.3);
            }
        }
        &.github {
            &:hover {
                background: linear-gradient(135deg, #333, #1f2937);
                border-color: #333;
                box-shadow: 0 8px 25px rgba(51, 51, 51, 0.3), 0 0 0 1px rgba(51, 51, 51, 0.3);
            }
        }
    }
}

.nav-links {
    margin-top: 32px;
    text-align: center;
    width: 100%;
    
    .nav-link {
        color: #667eea;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
        padding: 6px 12px;
        border-radius: 8px;
        position: relative;
        
        &:hover {
            color: #764ba2;
            background: rgba(102, 126, 234, 0.1);
            transform: translateY(-1px);
        }
        
        &::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }
        
        &:hover::after {
            width: 80%;
        }
    }
    
    .separator {
        margin: 0 12px;
        color: rgba(189, 195, 199, 0.6);
        font-weight: 300;
    }
}

// 动画效果
@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

// 响应式设计
@media (max-width: 768px) {
    .user-login-container {
        padding: 15px;
        padding-top: 79px; // 为固定导航栏留出空间 (64px + 15px)
        width: 100%;
    }
    .user-login-card {
        padding: 30px 20px;
        margin: 0 auto; // 确保水平居中
    }
    .form-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    .social-buttons {
        gap: 15px;
    }
    .social-btn {
        width: 52px;
        height: 52px;
        img {
            width: 24px;
            height: 24px;
        }
    }
}

@media (max-width: 480px) {
    .user-login-container {
        padding: 15px;
        padding-top: 79px; // 为固定导航栏留出空间 (64px + 15px)
        width: 100%;
    }
    .user-login-card {
        padding: 25px 15px;
        margin: 0 auto; // 确保水平居中
    }
    .form-title {
        font-size: 1.4rem;
    }
    .login-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}